<?php namespace app\admin\validate;
use think\Validate;
//配置表验证
class Config extends Validate{
	protected $rule =   [
//      'web_status'  => 'require',
        'web_close_word'  => 'require',
        'web_icp'         => 'require',
        'admin_email'     => 'require|email',
        'web_name'        => 'require',
        'keywords'        => 'require',
        'description'     => 'require',
        'copyright_word'  => 'require',
        'hotline'         => 'require|number',
        'address'         => 'require',
            
    ];
    
    protected $message  =   [
        'web_close_word.require' => '请输入网站关闭时的提示信息！',
        'web_icp.require'        => '请输入网站备案号！',
        'admin_email.require'    => '请输入站长邮箱！',
        'admin_email.email'      => '邮箱格式不正确！',
        'web_name.require'       => '请输入网站名称！',
        'keywords.require'       => '请输入网站关键词！',
        'description.require'    => '请输入网站描述！',
        'copyright_word.require' => '请输入网站底部版权信息！',
        'hotline.require'        => '请输入服务热线！',
        'hotline.number'         => '服务热线只能是数字！',
        'address.require'        => '请输入公司地址！',
       
    ];
	
	
}
